This patch defines a new PGT type called PGT_shared_page and a new synthetic
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 17 Dec 2009 06:27:56 +0000 (06:27 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 17 Dec 2009 06:27:56 +0000 (06:27 +0000)
commit38edca187daf8961d574f0e9cec8d775f6271e35
treeb68271b7a481e18989fd3c769a91cd48139309ee
parent287d07f6a7b84d9caf6e734f987a02ef5de7561c
This patch defines a new PGT type called PGT_shared_page and a new synthetic
domain called 'dom_cow'. In order to share a page, the type needs to be changed
to PGT_shared_page and the owner to dom_dow. Only pages with PGT_none, and no
type count are allowed to become sharable. Conversly, sharable pages can only be
made 'private' if type count equals one. page_make_sharable() and
page_make_private() handle these transitions.

Signed-off-by: Grzegorz Milos <Grzegorz.Milos@citrix.com>
xen/arch/x86/mm.c
xen/common/page_alloc.c
xen/include/asm-x86/mm.h
xen/include/public/xen.h